<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		
	</head>
	<body>
		<div id="">
			<p id="p1"></p>
		</div>
		<script type="text/javascript">
		var p1 = document.getElementById("p1");
		p1.style.color='red';
		var x = 10 ;
			var time = setInterval(function(){
				p1.innerHTML = x--+"秒后开始支付";
				if(x == -1){
					clearInterval(time);
					p1.innerHTML = "支付成功";
				}
				
			},1000);

			
		</script>
	</body>
</html>
